package com.cmower.baeldung.arrays1;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 沉默王二，一枚有趣的程序员
 */
public class ListTest {
    public static void main(String[] args) {
        List list = new ArrayList();

        int[] anArray = new int[10];
anArray[0] = 10;
System.out.println(anArray[0]);
        System.out.println(anArray.length);


int anOtherArray[] = new int[] {1, 2, 3, 4, 5};
for (int i = 0; i < anOtherArray.length; i++) {
    System.out.println(anOtherArray[i]);
}

for (int element : anOtherArray) {
    System.out.println(element);
}
    }


}
